﻿using DosTexPrj.Core.Models;
using FluentNHibernate.Mapping;

namespace DosTexPrj.Implement.NHibernate.Mapping
{
    public class OrderStatusMapping : ClassMap<OrderStatus>
    {
        public OrderStatusMapping()
        {
            Table("OrderStatuses");
            Id(x => x.Id, "OrderStatusID").UnsavedValue(0).GeneratedBy.Identity();
            Map(x => x.OrderStatusName, "OrderStatusName").Not.Nullable().Length(100);
        }
    }
}